Hi,
i generate a html Table (with help from a friend) and Show this in a WebView.
The Table contains Links:
the Java Code:
The "Popup" open (Webview dont support Popup? it use the full WebView)
Unfortunly the Close Button dont work.
Any Idear?
ps: i use WebViewExtras2
i generate a html Table (with help from a friend) and Show this in a WebView.
The Table contains Links:
HTML:
<td class="tg-x"><a class="a-x" href="javascript:popup('Test')">X</a></td>
the Java Code:
JavaScript:
<script language="JavaScript">
function popup(sitedata) {
w=200;
h=100;
x=screen.availWidth/2-w/2;
y=screen.availHeight/2-h/2;
var popupWindow=window.open('','','width='+w+',height='+h+',left='+x+',top='+y+',screenX='+x+',screenY='+y);
popupWindow.document.write('<html><head></head><body><b>Work:</b></br>'+sitedata+'</br></br><button onclick="javascript:window.history.back()">Close</button></body></html>');
}
</script>
The "Popup" open (Webview dont support Popup? it use the full WebView)
Unfortunly the Close Button dont work.
Any Idear?
ps: i use WebViewExtras2