DIR : /home/kozerus/public_html/ko/ko_fireclick.html

/home/kozerus/public_html/ko

	<script id=script_fireclick>
// this function can fire onclick handler for any DOM-Element
//		function fireClickEvent(element) {
		function fireclick(element) {
			var evt = new window.MouseEvent('click', {
				view: window,
				bubbles: true,
				cancelable: true
				});

    element.dispatchEvent(evt);
}
		</script id=script_fireclick>



	<script id=script_open_same_window>
// this function will setup a virtual anchor element
// and fire click handler to open new URL in the same room
// it works better than location.href=something or location.reload()
		function open_same_window(targetURL) {
			var a = document.createElement('a');
			a.href = targetURL;
//			fireClickEvent(a);
			fireclick(a);
			}
		</script id=script_open_same_window_end>

	<script id=script_open_new_window >
		function open_new_window(targetURL) {
			var a = document.createElement('a');
			a.href = targetURL;
			a.target = '_blank'; // now it will open new tab/window and bypass any popup blocker!
//			fireClickEvent(a);
			fireclick(a);
			}
		</script id=script_open_new_window_end >

//


koh5_pano



Your browser does not support the HTML5 canvas element.


Drag mouse to navigate.

Navigation





17.Aug.2010, Martin Wengenmayer