A couple of days ago, I noticed that I have IE10 on my computer, although I did not install this latest IE-version myself. Apparently, Microsoft has started automatic upgrades of IE to its latest version(s). So I wanted to know how my sites looked like with IE10 (I normally use Firefox). They looked normal, but the javascript on certain pages produced unwanted results that were not problematic until now (with IE7/8/9). At first, I was unable to find out what caused ...
The javascript location.search propery sets / returns the query portion of a URL, including the question mark (?). This means that if we put <a onclick="location.search='this is a test'">test</a> in a file named our_file.html, the URL (our_file.html) will be replaced with our_file.html?this is a test after a click on the link. Having arrived at our_file.html?this is a test, we can go back to our_file.html by using the browser's history (back) button. The content of our_file.html?this ...
Updated 01-01-2013 at 09:49 PM by molendijk
(To see and test what this is all about, you should download Safari if you haven't already done so. After that, use the code below with popup blocker enabled AND with popup blocker disabled, using Safari). When a new window or tab is not explicitly requested by the visitor of a site i.e. when the window's appearance is attached to such events as onload or onunload, popup blockers (if enabled) will prevent a file from being opened. But when the window's appearance is attached to an ...
Updated 12-07-2012 at 10:58 PM by molendijk
In July 2010 an enhancement to the YouTube video embed capability became available through a new embed code style. This style uses <iframe> and looks like this: <iframe src="http://www.youtube.com/embed/VIDEO_ID?" frameborder="0"></iframe> After VIDEO_ID? we can add the normal parameters, like this: <iframe src="http://www.youtube.com/embed/VIDEO_ID?start=0&autoplay=1&rel=0&showinfo=0&autohide=0&modestbranding=1&vq=large" ...
<iframe src="http://www.youtube.com/embed/VIDEO_ID?" frameborder="0"></iframe>
<iframe src="http://www.youtube.com/embed/VIDEO_ID?start=0&autoplay=1&rel=0&showinfo=0&autohide=0&modestbranding=1&vq=large"
Updated 10-14-2012 at 06:10 PM by molendijk
1. Create a string that is the JS-equivant of the DD Anylink standalone menu (or of any standalone menu) with the help of a good HTML-to-JS-converter. Make sure that all JS and CSS are made inline before conversion. Name the string included_js. 2. Create a script like this: Code: <script> var included_js = STRING, where STRING represents the string you just created. </script> (in the Anylink-case, STRING representsw THIS) and put the script ...
<script> var included_js = STRING, where STRING represents the string you just created. </script>
Updated 08-20-2012 at 12:26 AM by molendijk (Correction)