|
Answer» I am CREATING a Web application that with one of the links on the default.aspx page I am using javascript to open the window and limit the size and scroll BAR and so on. The script itself is working with one small bug. The default.aspx window goes blank, this is something that I do not wish to happen. Below is the script that I am using
Code: [Select]<head> <script type="text/javascript"> function openNewWindow(newPageURL) { window.open(newPageURL, "_blank", "height=500px width=500px " + "resizable=no scrollbars=no menubar=no location=no status=no"); } </script>
</head> Code: [Select]<br /> Please read our <a href="http://fa-iwp-01.macomb.edu/asmarl/itwp2300/MichiganTalentBank/employer.aspx" onclick="javascript:openNewWindow('/asmarl/itwp2300/MichiganTalentBank/policy.aspx');"><b><u>Privacy Policy</u></b> </a> Thanks in advance for your time and HELP, If you're trying to open two pages at the same time, I would suggest using javascript for both of them. It's probably confusing the browser. get rid of the href="" and put it in another openLink function like the other link is. And then use your onclick to trigger both events.Code: [Select]<head> <script type="text/javascript"> function openNewWindow(newPageURL) { window.open(newPageURL, "_blank", "height=500px width=500px " + "resizable=no scrollbars=no menubar=no location=no status=no"); } </script>
</head>
Code: [Select]<br /> Please read our <a href="#" onclick="openNewWindow('/asmarl/itwp2300/MichiganTalentBank/policy.aspx');"><b><u>Privacy Policy</u></b> </a>
That WORK?Thankyou so very much, that worked! LoriNo problem...
Call back if you need any more help.
|