Posts Tagged Javascript
Add Favorite Link
<script type=”Text/Javascript”><!–
var url = “http://www.mysite.com”;
var title = “My Website”;
function addToFavorites() {
if (window.sidebar) {
window.sidebar.addPanel(title, url,”");
} else if (window.external) {
window.external.AddFavorite(url,title)
} else {
alert(“Sorry! Your browser doesn’t support this function.”);
}
}
if (!window.sidebar && !window.external) {
document.getElementById(‘bookmarkPage’).style.display = ‘none’;
}
// –></script>
Add comment February 26, 2009
Javascript: Print preview window
I would like to create a print preview window that will display only the main content of the page that a person would really want to print. It can work fine on IE and Firefox..You can test other browser.
Add comment July 25, 2008
Clicking a button in Javascript doesn’t always work in Firefox
Clicking a button in Javascript always work in IE but not in Firefox.
I’ve run into a javascript problem a few times which -for a refreshing change – shows itself as Firefox not behaving as you might expect (… well Firefox together with ASP.NET at any rate).
(more…)
Add comment July 23, 2008