Monday, July 12, 2010

What is the html code for a link to open a new window that doesn't have a 'maximise' button?

On our company website, I would like to add a link to open a new window which contains a questionnaire.





I would like to be able to determine the size of the new window and also remove the 'maximise' button from the top-right of the window.





The reason for this is: the questionnaire is on an external site and I want the viewer to still see our company site behind it.





(This would not be spam or another annoying popup, as our site is visited by paying customers only).





Any help much appreciated, and if anyone has any better ideas on how to do this I'd be more than happy to hear them.





Cheers!

What is the html code for a link to open a new window that doesn't have a 'maximise' button?
Oh yes! This is done through JavaScript. But it's a very simple JavaScript, Here's the basic format.





%26lt;SCRIPT LANGUAGE="javascript"%26gt;


%26lt;!--


window.open ('page.html')


--%26gt;


%26lt;/SCRIPT%26gt;





little window.


%26lt;SCRIPT LANGUAGE="javascript"%26gt;


%26lt;!--


window.open ('titlepage.html', 'newwindow', config='height=100,


width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no,


location=no, directories=no, status=no')


--%26gt;


%26lt;/SCRIPT%26gt;
Reply:You're welcome. Report Abuse

Reply:you use %26lt;a href=the http you want to link to%26gt;then give it a name out here
Reply:I would recommend having a separate page for Questionnaire instead of the one you are planning.


U can also put the questionnaire on a side of the page if you want to prevent the user from leaving the page.


To achieve this you can use the table layout.





Hope this helps.


Good luck.





And w3cschools.com may have the solution to your problems.
Reply:I suggest you hire someone professional rather than take advantage of the goodwill of folk on this site.


No comments:

Post a Comment