Knowledge Base Contributions
Below is a list of the knowledge base entries that Thor Larholm has contributed to:
- How do I emulate innerText in mozilla/gecko/NS6+ ?
- How can i get function code when Function.prototype.toString method is overrided ?
- How can I invoke a function dynamically, if I know its name (as a string. not as function reference)
- How do I detect the RealPlayer plugin ?
- How do I get the rendered width/height of a string ?
How do I get the rendered with/height of the users default font size ?
How do I get the rendered with/height of a specific font family ?
- How do I detect the presence of a sound card ?
How do I test if the user can play sound ?
- Is there an exception/error handling mechanism in core JavaScript?
- How do I navigate the user to their default homepage ?
How do I navigate the user to their default homepage ?
- How do I display all available methods of an object?
- How do I get the absolute position of a non-positioned element ?
How do I get the absolute position of a non-positioned element ?
- In onbeforeunload(), can I find out what page the user is navigating to (if any)?
- when passing a parameter to a function that may or may not be another function how would you test the parameter to see if it is a function or not?
- onbeforeUnload is not working on NS 6 any alternative for this?
- How can I browse to the home page of the user?
- How can I SaveAs with a new filename AND specify the file type, i.e., Web Page, HTML Only
beside save as htm and txt in IE , can i save as jpeg or other formats ?
- writing from a teaxtarea to a texfile, including the carriage return!!
I have implemented this code and it works very well, my only problem is that in my text area, I have
I have carriage returns in my text area that I need to preserve in my created text file
How do you make a variable with the value of the textarea without submiting or is this imposibel ?
- How do I prototype methods onto every HTMLElement using DOM ?
How do I emulate insertAdjacentHTML in Netscape 6/Mozilla ?
How do I emulate insertAdjacentHTML in Netscape 6/Mozilla ?
- How to exactly centering a object in the client view
How to specify an element's location with dynamic property (IE5)?
How can I place button object exactly at the center (IE5)?
- How do I encode and decode special characters for and from a link?
How do I encode and decode special characters for and from an URL's ?
How do I encode and decode string characters for a Link/URL ?
- How can I read and write cookies with client side Javascript?
How can I delete a cookie?
- Can I have the same function twice with different number of arguments?
Can a function process a different number of arguments?
- Can I call the Save as command from client side JavaScript?
Can I call the Save as command from client side JavaScript?
Can I make the save as type to "Web Page, complete (*.htm;*.html)" by default when the dialog box op
Can I call the Save as command from client side JavaScript in NetscapeŽ Communicator?
- Is window.stop supported in IE?
Is there an equivalent to Netscape's window.stop in IE?
- How can I display a number with two decimals always?
How can I round a number to two decimals?
How can I round a number to n decimals?