How to change properties of clients browser via java script.help needed!!
I want to disable some buttons of the browser on which my asp or html page is loaded. Could anyone help me about changing the properties of the navigator or window object or what ever..
thanks in advance...
------------------
Anonymous posted this at 16:24 — 14th December 1999.
They have: 5,633 posts
Joined: Jan 1970
What you can do is change the properties of a new browser window. Using the window.open JavaScript. It would look something like this:
<form name="formname">
<input type="button" name="buttonname" value="Click Me" onClick="window.open('http://www.yoursite.com/yourpage.html','Windowname','property1,property2,property3')">
</form>
The properties which you can use are listed on:
www.pageresource.com/jscript/jwinopen.htm
Oops, misspelt the url
[This message has been edited by tomworld (edited 14 December 1999).]
Nurullah posted this at 09:31 — 15th December 1999.
They have: 6 posts
Joined: Dec 1999
Thank you for your quick response, it was very helpful.
But can I ,for example , only disable the print option of the browser from the file menu, not the whole menu bar or toolbar to disappear. Thank you
Jack Michaelson posted this at 10:27 — 15th December 1999.
He has: 1,733 posts
Joined: Dec 1999
As far as I know that's not possible. But maybe in future (IE 5.5)....?
------------------
Jack Michaelson
[email protected]
! Click here for my profile !
Shakespeare: onclick || !(onclick)
Nurullah posted this at 11:40 — 15th December 1999.
They have: 6 posts
Joined: Dec 1999
But I have seen a browser window with its back and forward buttons disabled. How can that be possible?
John Pollock posted this at 13:06 — 15th December 1999.
He has: 628 posts
Joined: Mar 1999
If you use copyhistory=no you eliminate the browser history list in the new window, thus there is no site "back" or "forward" from that spot yet.
Java Script: A Beginner's Guide
Page Resource
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.