Javascript Reference
Categories: tips

javascript tips 2

@March 23, 2008, 12:39 p.m.
Jump to postion quickly:
obj.scrollIntoView(true)

Anchor:
<a name="first">
<a href="#first">anchors</a>

Transfer variables:
location.search();

Make div or elements editable:
document.getElementById('divid').contenteditable=true

Execute menu command:
obj.execCommand

Transparency background:
<IFRAME src="1.htm" width=300 height=180 allowtransparency></iframe>

Get current style content:
obj.style.cssText

HTML lable:
document.documentElement.innerHTML

The first style label:
document.styleSheets[0]

The first style of stylesheet:
document.styleSheets[0].rules[0]

Avoid that when click empty link, page scrolls to top:
<a href="javascript:function()">word</a>

Get last page url:
document.referrer
lipitor ca <a href="https://lipiws.top/">lipitor 10mg over the counter</a> atorvastatin over the counter
Htszph - 1 months
lipitor 80mg pills <a href="https://lipiws.top/">order lipitor online cheap</a> buy generic atorvastatin 10mg
Kjvuqw - 1 months

Powered by Linode.