Greetings:
I’m trying to creating a function which allows me to enter the url link in the body of the code when calling the window.open function.
Currently my code is written as followed…
[CODE]
<SCRIPT language=”JavaScript1.2″>
function poponload()
{
testwindow= window.open (“”, “mywindow”,”location=no,status=0,scrollbars=0,menubar=0,resizable=0,toolbar=0,directories=0,width=750,height=550″);
testwindow.moveTo(25,40);
}
</SCRIPT>
<body style=”background: #39275B;
background-attachment: fixed;
background-repeat: no-repeat;
background-position: center;
link=”white” vlink=”red” alink=”white””>
<font face=”Verdana, Arial, Helvetica, sans-serif” size=”2″ color=”#FFFFFF”>
<li type=”circle”>
[COLOR=”Red”]<a href=”javascript: poponload()” class=”linkw”>Application</a>[/COLOR]
</font></li>
</body>
</html>
[/CODE]:confused::confused::confused::confused:
I would like to enter a different url link each time i call the function
Like the example below
[CODE]
<a href=”javascript: poponload(http://www.google.com)” class=”linkw”>Application</a>
<a href=”javascript: poponload(/secure/mlu/Henderson.pdf)” class=”linkw”>Application</a>
<a href=”javascript: poponload(/secure/ucla/And.html)” class=”linkw”>Application</a>
<a href=”javascript: poponload(http://www.webdeveloper.com)” class=”linkw”>Application</a>
Any help is greatly appreciated