Hi all,
I need some help with popups.
I am developing a website, when a user clicks a certain link I would like it to open only in a certain size window. How can I do this?
Thanks,
Hi all,
I need some help with popups.
I am developing a website, when a user clicks a certain link I would like it to open only in a certain size window. How can I do this?
Thanks,
Add this snippet of Javascript in the head of your document:
Then for each link in the body of your page add:Code:<script language="JavaScript" type="text/javascript"> <!-- function openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script>
adjusting the target url, the WindowTitle the dimensions of the window and the Link Text in the code.Code:<a href="javascript:;" onmousedown="openBrWindow('http://www.domain.co.uk/target.htm','WindowTitle','width=x,height=y')">Link Text</a>
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks