PDA

View Full Version : new resized window .... help!



lakp
07-07-2005, 11:29 PM
when someone clicks on a link, how can i mak it open up in a new, resized window without the forward or back buttons and address bar?

i dont want a chromeless window (the one showed on dynamic drive)
just a normal one like the popup adds would do, except i dont want it to be a popup, users click on each link to view the link on a new resized window

all help will be greatly appreciated ....
thanx a lot!

bubba.daniel
07-08-2005, 01:12 AM
First, copy this script into the <HEAD> section of your page:



<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
return false;
}
//-->
</SCRIPT>
For now we'll skip the details of how the script works and move to the next step. The script above opens the popup, but something needs to run the script. Your situation is that the script is run when the user clicks on a link. A link like the following would run the script:




<A HREF="popupbasic.html"
onClick="return popup(this, 'notes')">my popup</A>

And that should solve your problem... oh yeah edit it

lakp
07-08-2005, 01:49 AM
oh man ... thank you so much
it works PERFECTLY

awesome

steve33
07-08-2005, 05:56 PM
That was a very useful topic for me, but as you can see I am only a beginner and I would like if it is possible to place some iconic links so I can see where to place my picture link and my topic link. Thank you very much
This is a Very useful site ;)

bubba.daniel
07-09-2005, 02:57 AM
No problem, any time.... steve, if you have another topic start a new thread, or just private message me and i will help you out to my ability.

glad it works for you lakp