opening forms in new sub windows

liunx

Guest
Righto then<br />
<br />
I have created a webpage with links to some enquiry forms, in which the user can enter their enquiry details.<br />
<br />
I know that to get these forms to open in a new window requires a TARGET="_blank" attribute.<br />
<br />
But how do I get the new window to open as a smaller, pop-up type window, i.e. not full screen?<br />
<br />
thanks<!--content--><a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:location='current.html';window.open('nextpage.html','label','height=h,width=w')">Link Text</a><br />
<br />
<br />
current.html is the page where this code will go.<br />
nextpage.html is the page to open in a new window.<br />
label is the 'title' of the new window.<br />
height and width are self explanatory.<!--content-->You should provide an alternative link for the ~13% of users with JavaScript disabled, or better yet--not use the jaavascript: protocol at all.<br />
<br />
[J]ona<!--content-->thanks for your help.<br />
<br />
unfortunately the above code doesn't work for me, i get a "Cannot Find Server" message.<br />
<br />
i have tried the suggested A HREF link code, and also inserting the main parts of this into the FORM command.<br />
<br />
any other suggestions?<br />
<br />
cheers<!--content-->Your 404 "File Not Found" error is a result of not changing the variables suggested by s0ms0m.<br />
<br />
[J]ona<!--content-->to jona<br />
<br />
-its not a 404 File Not Found error its a Cannot Find Server error.<br />
<br />
- of course i changed the variables.<br />
<br />
- i may well write an alternative non-javascript link, right now i just need one that works...<!--content-->Server errors are from the server... Only time I ever get a server error is when there is something wrong on the server-side... Did you get a JavaScript error?<br />
<br />
[J]ona<!--content-->still not sure what the problem is. haven't received any javascript errors.<br />
<br />
i have attached my original txt file, at present the buttons open the forms in new windows, which is o.k., but if anyone can get them to open in smaller windows i would be grateful.<br />
<br />
cheers<!--content-->If you're sticking with JavaScript, remove all spaces from the label element.<!--content-->
 
Back
Top