google+javascriptbanktwitter@js_bankfacebook@jsbankrss@jsbank
Guest, register






Opening New Windows When using strict doctypes the target attribute is not allowed for opening new windows. This JavaScript will accomplish that task easily and unobtrusively. The script uses the class name "non-html" so you will need to add that to the links you want to open in a new window, e.g., <a href="yourDocument.html" class="non-html">A sample file</a>

This JavaScript will not open a new window if a modifier key (ctrl/shift/etc.) is pressed while the JavaScript link is clicked. It also checks if the new window was successfully opened. If it was not, it returns true to allow the browser to open the JavaScript link in the original window.


Category: Snippet

File Include script Use this JavaScript to target which files you will include on a designated Web page. Easy to set-up and use.


Category: Snippet, Rotation

Print to Preview Your visitors may not be familiar with style sheets for printing and don't see a 'print preview' in their browser. This script will provide them with a reliable print preview.


Category: Snippet

Obtaining the URL of the Referring Document Use this JavaScript snippet to obtain the URL which referred the user to that page. Be aware that on some servers this may not work.


Category: Snippet

getXML Obtain the contents of an XML element and convert it to text. This script is great for using with Ajax-type applications, when it's neccessary to send back the contents of an element to the server without knowing what's there.


Category: Snippet

Dynamic Timed Redirect Redirect the user to a different Web page after a designated number of seconds, while displaying a countdown in the document title representing the number of seconds left before redirection.


Category: Snippet

Algorithms by JavaScript This package uses JavaScript to build algorithms: Heap sort, Quick sort, Counting sort and Bucket sort. Usefull scripts for teaching. This is a little JavaScript to introduction to algorithms, programming algorithms.


Category: Snippet

Window Print Method Add a button to allow your visitors to print your Web page. Compact and simple, yet highly requested.


Category: Snippet

Window Close Automatically Many times you just want a popup window to stay open for a few seconds, or a bit longer. Place this JavaScript snippet in the body tag of the popup window.


Category: Snippet

Stretch filter Simple IE 5+ Stretch filter.


Category: Snippet

iPhoneKer.com
Save up to 630$ when buy new iPhone 15

GateIO.gomymobi.com
Free Airdrops to Claim, Share Up to $150,000 per Project

https://tooly.win
Open tool hub for free to use by any one for every one with hundreds of tools

chatGPTaz.com, chatGPT4.win, chatGPT2.fun, re-chatGPT.com
Talk to ChatGPT by your mother language

Dall-E-OpenAI.com
Generate creative images automatically with AI

AIVideo-App.com
Render creative video automatically with AI

JavaScript by day


Google Safe Browsing McAfee SiteAdvisor Norton SafeWeb Dr.Web