     func webView(_ webView: WKWebView, didFinish navigation: WKNavigation) {
 		self.refresh!.state = .off
         self.progress!.animator().isHidden = true
+        
+        webView.evaluateJavaScript("document.body.scrollHeight") { (result, error) in
+            
+            print("height", result, error)
+            
+        }
 	}
 	
     func webView(_ webView: WKWebView, didFail navigation: WKNavigation, withError error: Error) {

		self.webView!.navigationDelegate = self
		self.webView!.addObserver(self, forKeyPath: "estimatedProgress", options: .new, context: nil)
        
		// Configure toolbar and subviews
		var rect = self.view.bounds
		rect.origin.y = rect.size.height - 26
		rect.size.height = 26
		self.view.addSubview(self.webView!)
		self.view.addSubview(self.toolbar!)
		self.toolbar!.frame = rect
		

	}
	
	// ---------
	
    @IBAction func scrollbar(_ sender: NSScroller!) {
        print(sender.doubleValue)
    }
    
	@IBAction func navigatePage(_ sender: NSSegmentedControl) {
		if sender.integerValue == 0 { // back
