I’m making a calendar for a site and for certain days there are events. On each of those days I would like to create a link to pop-up a window to give a longer description then just the title. I found the Code below to do what I want, but I have run into 2 issues and was hoping someone could shed some light on my problems.
—
1.
I have many links on one Calendar page, and doing the code this way, I would have to have a JS in the header for each link. Is their a way to set a value to the link when calling the script to make it go to a specific hyper link in a new window?
This script is for a button, how do I make the script do the same think but by clicking on Plain text (Hyper Link)?
[CODE]
<head>
<script type=”text/javascript”>
<!–
function myPopup2() {
window.open( “http://www.google.com/”, “myWindow”,
“status = 1, height = 300, width = 300, resizable = 0″ )
}
//–>
</script>
</head>
<body>
<form>
<input type=”button” onClick=”myPopup2()” value=”POP2!”>
</form>
<p onClick=”myPopup2()”>CLICK ME TOO!</p>
</body>
Thanks.